package com.intellij.ide.license.impl;

import com.intellij.licensecommon.data.LicenseData;
import com.intellij.licensecommon.data.h;

import java.util.Date;

public class ServerLicense implements LicenseData, h {
    private final String a;
    private final String b;
    private final String username;
    private final int d;
    private final long e;
    private boolean f;
    private boolean g;
    private boolean h;
    private final int licenseType;
    private final Date j;

    public ServerLicense(String paramString1, long paramLong, String paramString2, String username, int paramInt1, int licenseType, Date paramDate) {
        this.e = paramLong;
        this.a = paramString1;
        this.b = paramString2;
        this.username = username;
        this.d = paramInt1;
        this.licenseType = licenseType;
        this.j = paramDate;
        this.f = true;
        this.g = false;
    }

    public static ServerLicense a(String paramString, int paramInt) {
        return new ServerLicense("", 0L, paramString, "", 0, paramInt, null);
    }

    public Date getExpirationDate() {
        return null;
    }

    public boolean r() {
        return this.h;
    }

    public void c(boolean paramBoolean) {
        this.h = paramBoolean;
    }

    public Date getGenerationDate() {
        return new Date();
    }

    public void setFromUser(boolean paramBoolean) {
        this.g = paramBoolean;
    }

    public int getLicenseType() {
        return this.licenseType;
    }

    public String getKey() {
        return "";
    }

    public int getMajorVersion() {
        return 13;
    }

    public String getUsername() {
        return this.username;
    }

    public boolean isAccepted() {
        return this.f;
    }

    public boolean isEvaluationExpired(Date paramDate) {
        return false;
    }

    public boolean isFromUser() {
        return this.g;
    }

    public int s() {
        return this.d;
    }

    public boolean isAcademic() {
        return this.d == 1;
    }

    public boolean isOpenSource() {
        return this.d == 3;
    }

    public boolean isPersonal() {
        return this.d == 4;
    }

    public boolean k() {
        return false;
    }

    public boolean isValid() {
        return true;
    }

    public boolean isClassroom() {
        return this.d == 5;
    }

    public void setAccepted(boolean accepted) {
        this.f = accepted;
    }

    public boolean i() {
        return false;
    }

    public boolean willExpire() {
        return false;
    }

    public long t() {
        return this.e;
    }

    public String u() {
        return this.a;
    }

    public String v() {
        return this.b;
    }

    public Date getUpgradeDueDate() {
        return this.j;
    }
}
